#include "user.h"

//==========================log=============================//
// exist
int user_exist(MYSQL *db, const char *username) {

}

// log
int get_salt(MYSQL *db, const char *username, char *salt) {

}

int get_encrypted_password(MYSQL *db, const char *username, char *encrypted_password) {

}

int encrypt(const char *clear_text_password, const char *salt, char *encrypted_password) {

}

int update_login_time(MYSQL *db, const char *username) {

}

//========================register============================//
// register
int generate_salt(char *salt) {

}

int adduser(MYSQL *db, const char *username, const char *salt, const char *encrypted_password) {

}
